import Vue from 'vue'
import App from './App.vue'
import VueRouter from "vue-router"
import routes from "./assets/js/routerConfig.js"  //routes为了方便，规定起这个名字
import store from "./store/index.js"              //store为了方便，规定起这个名字
import axios from "axios"

//引入/*css reset*/
import "./assets/css/base.css"

Vue.use(VueRouter);

const router = new VueRouter({
	mode: "history",
	scrollBehavior: () => ({ y: 0 }), // 滚动条滚动的行为，不加这个默认就会记忆原来滚动条的位置
	routes
}) 

Vue.prototype.$http = axios          //这样在其他页面使用axios的时候，直接this.$http.get()即可

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
